package com.lewis.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lewis.dao.LocationDAO;
import com.lewis.dao.TeleTypeDAO;
import com.lewis.jpa.entity.Location;
import com.lewis.jpa.entity.TeleType;
import com.lewis.service.MetaTypeService;

@Service
public class MetaTypeServiceImpl implements MetaTypeService {

	@Autowired
	private TeleTypeDAO teleTypeDAO;
	@Autowired
	private LocationDAO locationDAO;

	@Override
	@Transactional(value = "transactionManager")
	public void createTeleTypes(List<TeleType> teleList) {
		teleTypeDAO.createTeleTypes(teleList);

	}

	@Override
	@Transactional(value = "transactionManager")
	public void createLocations(List<Location> listLocation) {
		locationDAO.createLocations(listLocation);

	}

}
